import type { RouteRecordRaw } from 'vue-router'

// 将学生路由改为数组，包含所有学生相关的一级菜单
export const studentRoute: RouteRecordRaw[] = [
  {
    path: '/student/my_project',
    component: () => import('@/layout/index.vue'),
    name: 'MyProject',
    meta: {
      title: '我的项目',
      hidden: false,
      icon: 'House'
    },
    children: [
      {
        path: '',
        component: () => import('@/views/student/my-project/index.vue'),
        meta: {
          title: '我的项目',
          hidden: true
        }
      }
    ]
  },
  {
    path: '/student/notification',
    component: () => import('@/layout/index.vue'),
    name: 'notification',
    meta: {
      title: '通知',
      hidden: false,
      icon: 'Message'
    },
    children: [
      {
        path: '',
        component: () => import('@/views/student/notification/index.vue'),
        meta: {
          title: '通知',
          hidden: true
        }
      }
    ]
  },
  {
    path: '/student/group_manage',
    component: () => import('@/layout/index.vue'),
    name: 'GroupManage',
    meta: {
      title: '小组管理',
      hidden: false,
      icon: 'User'
    },
    children: [
      {
        path: '',
        component: () => import('@/views/student/group-manage/index.vue'),
        meta: {
          title: '小组管理',
          hidden: true
        }
      }
    ]
  },
  {
    path: '/student/project_manage',
    component: () => import('@/layout/index.vue'),
    name: 'ProjectManage',
    meta: {
      title: '项目管理',
      hidden: false,
      icon: 'User'
    },
    children: [
      {
        path: '',
        component: () => import('@/views/student/project-manage/index.vue'),
        meta: {
          title: '项目管理',
          hidden: true
        }
      }
    ]
  },
  {
    path: '/student/info',
    component: () => import('@/layout/index.vue'),
    name: 'Info',
    meta: {
      title: '我的信息',
      hidden: false,
      icon: 'User'
    },
    children: [
      {
        path: '',
        component: () => import('@/views/student/info/index.vue'),
        meta: {
          title: '我的信息',
          hidden: true
        }
      }
    ]
  }
]